<?php
class TestdataCommand extends CConsoleCommand{
      
 
    public function run($args){
        for ($i=1;$i <= 1000;$i++){
            var_dump($i);
            $customer = new Customer();
            $customer->user_name = 'TEST CUSTOMER ';
            $customer->email = 'TESTCUSTOMER@TESTCUSTOMER.COM';
            $customer->password = 'password';
            $customer->status = 1;
            $customer->created = time();
            $customer->save();
            
            
            $customerBid = new CustomerBidInfo();
            $customerBid->customer_id = $customer->id;
            $customerBid->bid_type = 'CASH';
            $customerBid->bid_num = 1000;
            $customerBid->save();
            
            var_dump( $customer->id);
        }
    }
    
}